﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Domain.Entities.Auditing;
using Akso.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Akso.Courses.Dto
{
    /// <summary>
    /// 主页面查询时显示网格数据时的Dto对象。
    /// </summary>
    [AutoMapFrom(typeof(CourseEntity))]
    public class CourseListDto: EntityDto<Guid>, IHasCreationTime
    {
        public string CourseName { get; set; }
        public decimal Price { get; set; }
        public string Grade { get; set; }
        public string Subject { get; set; }
        public string SubjectType { get; set; }
        public string CourseType { get; set; }
        public bool IsAnQi { get; set; }
        public int ChargeTime { get; set; }
        public bool IsDisable { get; set; }
        public DateTime CreationTime { get; set; } //如果没有这个，IHasCreationTime会报错
    }
}
